<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMeetingTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //会议记录
        Schema::create ('meeting', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->uuid ('id')->primary ('id');//uuid主键
            $table->string ('meeting_title', 100);//会议标题
            $table->string ('meeting_number', 10);//会议编号
            $table->timestamp ('meeting_time');//会议时间
            $table->tinyInteger ('meeting_category');//会议分类
            $table->tinyInteger ('meeting_format');//会议形式
            $table->text ('meeting_content');//会议内容
            $table->uuid ('user_id');//会议记录人
            $table->timestamps ();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists ('meeting');
    }
}
